import axios from '@/utils/request.js'

// 打开灯光
export const open = (data) => {
	return axios({
		method: 'POST',
		url: '/device/light/open',
		data
	})
}

// 关闭灯光
export const close = (data) => {
	return axios({
		method: 'POST',
		url: '/device/light/close',
		data
	})
}

// 更改亮度
export const changeBrightness = (data) => {
	return axios({
		method: 'POST',
		url: '/device/light/changeBrightness',
		data
	})
}

// 更改色温
export const changeBrightness = (data) => {
	return axios({
		method: 'POST',
		url: '/device/light/changeColorTemperature',
		data
	})
}